@extends('layouts.default')
@section('content')     
<div class="box">
    <header>
        <div class="icons">
            <i class="fa fa-table"></i>
        </div>
        <h5>{{ Lang::get('messages.users_roles') }}</h5>
    </header>
    <div id="stripedTable" class="body collapse in">
        <table class="table table-striped responsive-table">
            <thead>
                <tr>
                    <th>{{Lang::get('login.username')}}</th>
                    <th>{{Lang::get('login.email')}}</th>
                    <th>{{Lang::get('messages.role')}}</th>
                    <th>{{Lang::get('messages.action')}}</th>
                </tr>
            </thead>
            <tbody>
                @foreach ($users_roles as $u)
                <tr>
                    <td>{{$u->Username}}</td>
                    <td>{{$u->email}}</td>
                    <td>{{$u->role}}</td>
                    <td>{{Helpers\Helper::fa_link_to_action('glyphicon glyphicon-pencil',
                                            'UserController@edit_roles',Lang::get('messages.edit_btn'),
                                            $u->id, array('class'=>'btn btn-success btn-xs btn-round'))
                        }}
                    </td>  
                </tr>                            
                @endforeach
            </tbody>
        </table>
    </div>
</div>        
@stop
